package com.literature.search.core.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * @ClassName UploadRecord
 * @Description TODO
 * @Author abin
 * @Date 2023/3/29 18:03
 * @Version 1.0
 */
@Data
@Document(collection = "upload_record")
public class UploadRecord {
    @Id
    @ApiModelProperty(value = "上传记录ID")
    private String id;

    @Field("file_id")
    @ApiModelProperty(value = "文件ID")
    private String fileId;

    @Field("file_name")
    @ApiModelProperty(value = "文件名")
    private String fileName;

    @Field("user_id")
    @ApiModelProperty(value = "上传用户ID")
    private String userId;

    @Field("user_name")
    @ApiModelProperty(value = "上传用户名")
    private String userName;

    @Field("upload_date")
    @ApiModelProperty(value = "上传日期")
    private String uploadDate;

    @Field("state")
    @ApiModelProperty(value = "审核状态：0-未审核，1-审核通过，2-审核不通过")
    private Integer state;
}
